home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 15692 < prev    next >
Encoding:
Text File  |  1996-08-05  |  639 b   |  19 lines

  1. Path: grumari.bonn.netsurf.de!user
  2. From: Andreas.Ernst@bonn.netsurf.de (Andreas Ernst)
  3. Newsgroups: comp.lang.c++
  4. Subject: fastest way to detect int overflow
  5. Date: Sun, 07 Apr 1996 09:18:43 +0200
  6. Organization: Bonner Network Consulting
  7. Message-ID: <Andreas.Ernst-0704960918430001@grumari.bonn.netsurf.de>
  8. NNTP-Posting-Host: grumari.bonn.netsurf.de
  9.  
  10. What is the fastest way to detect arithmetic operations causing an overflow?
  11. It works by doing some arithmetic with MAX/MIN_<...>, but this seems way
  12. too slow to me. Isn┤t there a better way ( like checking the carry bit in
  13. a portable way???).
  14.  
  15. Thanks, Andreas
  16.  
  17. -- 
  18. still under construction
  19.